﻿<UserControl 
  x:Class="CARE.MainPage"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation" 
  xmlns:uriMapper="clr-namespace:System.Windows.Navigation;assembly=System.Windows.Controls.Navigation"
  xmlns:dataControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.DataForm.Toolkit" 
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
  mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480" xmlns:my="clr-namespace:CARE.Web" xmlns:dataInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input">

    <Grid x:Name="LayoutRoot" Style="{StaticResource LayoutRootGridStyle}">
        <Grid Style="{StaticResource NavigationOuterGridStyle}">
            <Grid.Background>
                <ImageBrush ImageSource="/CARE;component/Images/sky-wallpaper-02923.jpg" />
            </Grid.Background>
            <Border x:Name="NavigationGrid" Height="33" Margin="24,29,28,0" VerticalAlignment="Top" Opacity="0.6" CornerRadius="10">
                <Border.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="Black" Offset="0"/>
                        <GradientStop Color="#FFEE1CF1" Offset="1"/>
                    </LinearGradientBrush>
                </Border.Background>
                <Border.Effect>
                    <DropShadowEffect BlurRadius="10" ShadowDepth="10"/>
                </Border.Effect>
                <Grid>

                    <Border x:Name="LinksBorder" Style="{StaticResource LinksBorderStyle}" Margin="0,0,15,0" VerticalAlignment="Top" d:LayoutOverrides="Height">
                        <StackPanel x:Name="LinksStackPanel" Style="{StaticResource LinksStackPanelStyle}" Margin="0,3,0,11" VerticalAlignment="Stretch" d:LayoutOverrides="Height">

                            <HyperlinkButton x:Name="Link1" Style="{StaticResource LinkStyle}" 
    						NavigateUri="/Home" TargetName="ContentFrame" Content="home" Foreground="#FF1FFF00" FontSize="13.333" FontWeight="Bold">
                                <HyperlinkButton.BorderBrush>
                                    <SolidColorBrush Color="#FF9D9492" Opacity="0.5"/>
                                </HyperlinkButton.BorderBrush>
                                <HyperlinkButton.Background>
                                    <SolidColorBrush Color="#FF862297" Opacity="0.5"/>
                                </HyperlinkButton.Background>
                            </HyperlinkButton>

                            <Rectangle x:Name="Divider1" Style="{StaticResource DividerStyle}"/>

                            <HyperlinkButton x:Name="Link3" Style="{StaticResource LinkStyle}" 
    						NavigateUri="/Actions" TargetName="ContentFrame" Content="actions" Foreground="#FF1FFF00" FontSize="13.333" FontWeight="Bold" Visibility="Visible">
                                <HyperlinkButton.BorderBrush>
                                    <SolidColorBrush Color="#FF9D9492" Opacity="0.5"/>
                                </HyperlinkButton.BorderBrush>
                                <HyperlinkButton.Background>
                                    <SolidColorBrush Color="#FF862297" Opacity="0.5"/>
                                </HyperlinkButton.Background>
                            </HyperlinkButton>

                            <Rectangle x:Name="Divider2" Style="{StaticResource DividerStyle}" Visibility="Collapsed"/>

                            <HyperlinkButton x:Name="Link2" Style="{StaticResource LinkStyle}" 
    						NavigateUri="/About" TargetName="ContentFrame" Content="about" FontSize="13.333" FontWeight="Bold" Foreground="#FF1FFF00">
                                <HyperlinkButton.BorderBrush>
                                    <SolidColorBrush Color="#FF9D9492" Opacity="0.5"/>
                                </HyperlinkButton.BorderBrush>
                                <HyperlinkButton.Background>
                                    <SolidColorBrush Color="#FF781E8B" Opacity="0.5"/>
                                </HyperlinkButton.Background>
                            </HyperlinkButton>

                        </StackPanel>
                    </Border>
                    <StackPanel x:Name="BrandingStackPanel" Style="{StaticResource BrandingStackPanelStyle}">
                        <ContentControl Style="{StaticResource LogoIcon}" />
                        <TextBlock x:Name="ApplicationNameTextBlock" Style="{StaticResource ApplicationNameStyle}" Text="{Binding ApplicationStrings.ApplicationName, Source={StaticResource ResourceWrapper}}" />
                    </StackPanel>

                </Grid>

            </Border>
            <Border x:Name="loginContainer" Style="{StaticResource LoginContainerStyle}" Margin="0" Background="{x:Null}" BorderBrush="{x:Null}">
                <!-- LoginStatus will be added here in code behind. This is required for the designer view to work -->
            </Border>
        </Grid>
        <Border x:Name="ContentBorder" Style="{StaticResource ContentBorderStyle}" CornerRadius="30" BorderThickness="0" Margin="30,80,30,30" Background="#80000000">
            <navigation:Frame x:Name="ContentFrame" Style="{StaticResource ContentFrameStyle}" 
                              Source="/Home" Navigated="ContentFrame_Navigated" NavigationFailed="ContentFrame_NavigationFailed">
                <navigation:Frame.UriMapper>
                    <uriMapper:UriMapper>
                        <uriMapper:UriMapping Uri="" MappedUri="/Views/Home.xaml"/>
                        <uriMapper:UriMapping Uri="/{pageName}" MappedUri="/Views/{pageName}.xaml"/>
                    </uriMapper:UriMapper>
                </navigation:Frame.UriMapper>
            </navigation:Frame>
        </Border>
    </Grid>

</UserControl>